//package com.xyzh.stj.web.controller;
//
//
//import com.xyzh.stj.web.dto.right.QueryRightDTO;
//import com.xyzh.stj.web.entity.RightEntity;
//import com.xyzh.stj.web.service.RightService;
//import com.xyzh.stj.web.service.impl.RightServiceImpl;
//import com.xyzh.application.common.util.ResultHelper;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//import io.swagger.annotations.Api;
//import com.xyzh.application.base.controller.BasicController;
//
///**
// * <p>
// * 权限表 前端控制器
// * </p>
// *
// * @author @JZB
// * @since 2023-10-29
// */
//@Api(tags = "权限表模块")
//@RestController
//@RequestMapping("/right")
//public class RightController extends BasicController<RightServiceImpl, RightEntity> {
//
//    @Autowired
//    private RightService rightService;
//
//
//    @ApiOperation("获取角色权限树")
//    @GetMapping("/roletree/{roleId}")
//    public ResultHelper getRoleRights(@PathVariable("roleId") String roleId) {
//        return ResultHelper.succeed(rightService.getRightsByRoleId(roleId));
//    }
//
//    @ApiOperation("获取组织权限树")
//    @GetMapping("/orgtree/{orgId}")
//    public ResultHelper getOrgRights(@PathVariable("orgId") String orgId) {
//        return ResultHelper.succeed(rightService.getRightsByOrganizationId(orgId));
//    }
//
//    @ApiOperation("获取权限树")
//    @PostMapping("/tree")
//    public ResultHelper getRights(@RequestBody  RightEntity rightEntity) {
//        return ResultHelper.succeed(rightService.getAllRight(rightEntity));
//    }
//    @ApiOperation("查询当前用户权限")
//    @PostMapping("/queryTree")
//    public ResultHelper getRightsList(@RequestBody QueryRightDTO queryRightDTO) {
//        return ResultHelper.succeed(rightService.getRightListByUser(queryRightDTO));
//    }
//}
